package com.niguang.work.api.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.TableLogic;
import java.io.Serializable;

/**
 * <p>
 * 'work.v_personSite' is not BASE TABLE
 * </p>
 *
 * @author chenliu
 * @since 2018-07-23
 */
@TableName("work_qiye")
public class Qiye extends Model<Qiye> {

    private static final long serialVersionUID = 1L;

    private Long id;
    /**
     * 认证企业用户ID
     */
    private Long userId;
    /**
     * 企业名称
     */
    private String qiyeName;
    /**
     * 企业地址
     */
    private String qiyeAddres;
    /**
     * 企业电话
     */
    private String qiyePhone;
    /**
     * 企业认证上传图片
     */
    private String qiyeImage;
    /**
     * 审核状态 1-待审核 2-审核通过 3-审核拒绝
     */
    private Integer auditState;
    /**
     * 审核时间
     */
    private Date auditTime;
    /**
     * 审核人
     */
    private String auditUserName;
    /**
     * 营业执照照片
     */
    private String licenseImg;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    /**
     * 未删除-0  已删除-1
     */
    @TableLogic
    private Integer delFlag;
    /**
     * 营业执照编号
     */
    private String license;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getQiyeName() {
        return qiyeName;
    }

    public void setQiyeName(String qiyeName) {
        this.qiyeName = qiyeName;
    }

    public String getQiyeAddres() {
        return qiyeAddres;
    }

    public void setQiyeAddres(String qiyeAddres) {
        this.qiyeAddres = qiyeAddres;
    }

    public String getQiyePhone() {
        return qiyePhone;
    }

    public void setQiyePhone(String qiyePhone) {
        this.qiyePhone = qiyePhone;
    }

    public String getQiyeImage() {
        return qiyeImage;
    }

    public void setQiyeImage(String qiyeImage) {
        this.qiyeImage = qiyeImage;
    }

    public Integer getAuditState() {
        return auditState;
    }

    public void setAuditState(Integer auditState) {
        this.auditState = auditState;
    }

    public Date getAuditTime() {
        return auditTime;
    }

    public void setAuditTime(Date auditTime) {
        this.auditTime = auditTime;
    }

    public String getAuditUserName() {
        return auditUserName;
    }

    public void setAuditUserName(String auditUserName) {
        this.auditUserName = auditUserName;
    }

    public String getLicenseImg() {
        return licenseImg;
    }

    public void setLicenseImg(String licenseImg) {
        this.licenseImg = licenseImg;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public String getLicense() {
        return license;
    }

    public void setLicense(String license) {
        this.license = license;
    }

    public static final String ID = "id";

    public static final String USER_ID = "user_id";

    public static final String QIYE_NAME = "qiye_name";

    public static final String QIYE_ADDRES = "qiye_addres";

    public static final String QIYE_PHONE = "qiye_phone";

    public static final String QIYE_IMAGE = "qiye_image";

    public static final String AUDIT_STATE = "audit_state";

    public static final String AUDIT_TIME = "audit_time";

    public static final String AUDIT_USER_NAME = "audit_user_name";

    public static final String LICENSE_IMG = "license_img";

    public static final String CREATE_TIME = "create_time";

    public static final String DEL_FLAG = "del_flag";

    public static final String LICENSE = "license";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Qiye{" +
        "id=" + id +
        ", userId=" + userId +
        ", qiyeName=" + qiyeName +
        ", qiyeAddres=" + qiyeAddres +
        ", qiyePhone=" + qiyePhone +
        ", qiyeImage=" + qiyeImage +
        ", auditState=" + auditState +
        ", auditTime=" + auditTime +
        ", auditUserName=" + auditUserName +
        ", licenseImg=" + licenseImg +
        ", createTime=" + createTime +
        ", delFlag=" + delFlag +
        ", license=" + license +
        "}";
    }
}
